package com.desksoft.ecommerce.util.html.element.query;

import java.io.Serializable;

import org.dom4j.Element;

/**
 * 参数预留占位符
 * @author Administrator
 *
 */
public class PlaceholderParameter implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5454114442123947530L;

	protected String key;
	
	protected String value;
	
	protected String defaultValue;

	public PlaceholderParameter(Element entryElmt) {
		this.key = entryElmt.attributeValue("key");
		this.value = entryElmt.attributeValue("value");
		this.defaultValue = entryElmt.attributeValue("default");
	}

	public PlaceholderParameter(String key, String value, String defaultValue) {
		this.key = key;
		this.value = value;
		this.defaultValue = defaultValue;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	
	
	
}
